package com.bridge.common.enums;

/**
 * @program: card-voucher_new
 * @description: 支付方式
 * @author: 陈迪
 * @create: 2022-10-31 14:28
 **/
public enum PayWayEnum {
    WX_PAY("1","微信支付"),
    BALANCE("4","余额"),
    WX_BALANCE_PAY("5","微信余额组合支付"),;



    private String type;
    private String desc;

    PayWayEnum(String type, String desc){
        this.type=type;
        this.desc=desc;
    }

    public static String getPayWayEnum(String type) {

        for (PayWayEnum var : PayWayEnum.values()) {
            if (type == var.getType())
                return var.getDesc();
        }
        return "";
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
